{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "birth2222\n",
      "00\n"
     ]
    }
   ],
   "source": [
    "a=float(input('birth'))\n",
    "if \n",
    "    print('10')\n",
    "elif a>=2000:\n",
    "    print('00')\n",
    "elif a>=1990:\n",
    "    print('90')\n",
    "    \n",
    "else:\n",
    "    print('其他')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "你的身高170\n",
      "你的体重60\n",
      "过轻\n",
      " 1\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "'1'"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "h=float(input('你的身高'))\n",
    "m=float(input('你的体重'))\n",
    "\n",
    "def BMI(h,m):\n",
    "    x=m/(h)**2\n",
    "    if x<18.5:\n",
    "        return('过轻')\n",
    "    elif x<=25:\n",
    "        return('正常')\n",
    "    elif x<=28:\n",
    "        return('过重')\n",
    "    elif x<=32:\n",
    "        return('肥胖')\n",
    "    else:\n",
    "        return('严重肥胖')\n",
    "\n",
    "y=BMI(h,m)\n",
    "print(y)\n",
    "\n",
    "input(' ')\n",
    "\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
